package com.ruoyi.user.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 查获登记结果业务对象 user_chdj_result
 *
 * @author strongme
 * @date 2023-01-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserChdjResultBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long chdjResultId;

    /**
     * 查获登记人员id
     */
    @NotBlank(message = "查获登记人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String userChdjId;

    /**
     * 时间
     */
    @NotNull(message = "时间不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sj;

    /**
     * 地点
     */
    @NotBlank(message = "地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dd;

    /**
     * 结果
     */
    @NotBlank(message = "结果不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jg;


}
